package com.gdut.vod.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author Drifiter
 * @create 2021-08-26 11:17
 */
@Component
public class ConstantVodUtils implements InitializingBean {


    @Value("${aliyun.vod.file.keyid}")
    private String keyid;

    @Value("${aliyun.vod.file.keysecret}")
    private String keysecret;

    public static String ACCESS_KEY_ID;
    public static String ACCESS_KEY_SECRET;



    @Override
    public void afterPropertiesSet() throws Exception {

        ACCESS_KEY_ID = keyid;

        ACCESS_KEY_SECRET = keysecret;

    }
}


